/*
 * Copyright 2016 Eveoh
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.gitee.zhanyao.single.util.datatables;

import lombok.Data;

import java.io.Serializable;
import java.util.Collections;
import java.util.List;

@Data
public class DataTablesResponse<T> implements Serializable {

    // 标识当前的绘制，服务端必须接收并原样返回，而后客服端重新绘制表格后，这个参数会 + 1 ，表示已更新。
    private int draw;

    private int recordsTotal;

    private long recordsFiltered;

    private List<T> data = Collections.emptyList();

}
